//
//  AddPerson_Choose_CollectionViewCell.m
//  MZSystem
//
//  Created by 智障 on 2018/11/9.
//  Copyright © 2018 zerod. All rights reserved.
//

#import "AddPerson_Choose_CollectionViewCell.h"

@implementation AddPerson_Choose_CollectionViewCell
- (IBAction)deleteClick:(UIButton *)sender {
    if (self.deleteClick) {
        self.deleteClick();
    }
}
- (void)setName:(NSString *)name{
//    float w = [self forWidthFromFont:FontSize14 withHeight:40.f withString:name] + 20 ;
    _nameLabel.text = [NSString stringWithFormat:@"    %@    ",name];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _nameLabel.clipsToBounds = YES;
    _nameLabel.layer.cornerRadius = _nameLabel.height/2;
}

@end
